package org.ecloud.oauth.client.service;

import org.ecloud.core.entity.APIResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "${authorization.gateway-service-id}", fallback = TokenFallback.class)
public interface TokenService {

	@RequestMapping(value = "${authorization.access-token-verify-url}", method = RequestMethod.POST)
	public APIResult<String> verify(@RequestParam(name = "access_token", required = true) String accessToken);
	
}
